package com.eorchis.module.classauditinfo.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.eorchis.core.basedao.entity.IBaseEntity;
import com.eorchis.core.basedao.entity.impl.AbstractBaseEntity;
import com.eorchis.module.trainingclass.domain.TrainingClass;
import com.eorchis.module.user.domain.User;

/**
 * Title: ClassAuditInfo<br>
 * Description: 班级审核信息实体对象<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2013-12-31
 * @version $Revision$
 */
@Entity
@Table(name = "CLASS_AUDIT_INFO")
public class ClassAuditInfo extends AbstractBaseEntity implements IBaseEntity {
	private static final long serialVersionUID = 1L;

	private String auditId;//ID
	private User createUser;//创建人
	private Integer aduitState;//状态
	private String auditReason;//审核意见
	private TrainingClass trainingClass;//班级信息
	
	/**
	 * 获取ID
	 */	
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="AUDIT_ID")
	public String getAuditId() {
		return auditId;
	}
	/**
	 * 设置ID
	 */		
	public void setAuditId(String auditId) {
		this.auditId = auditId;
	}
	/**
	 * 获取状态
	 */	
	@Column(name="ADUIT_STATE")
	public Integer getAduitState() {
		return aduitState;
	}
	/**
	 * 设置状态
	 */		
	public void setAduitState(Integer aduitState) {
		this.aduitState = aduitState;
	}
	/**
	 * 获取审核意见
	 */	
	@Column(name="AUDIT_REASON")
	public String getAuditReason() {
		return auditReason;
	}
	/**
	 * 设置审核意见
	 */		
	public void setAuditReason(String auditReason) {
		this.auditReason = auditReason;
	}
	
	@ManyToOne(fetch = FetchType.LAZY, optional = true)
	@JoinColumn(name="CREATE_USERID")
	public User getCreateUser() {
		return createUser;
	}
	public void setCreateUser(User createUser) {
		this.createUser = createUser;
	}
	
	@ManyToOne(fetch = FetchType.LAZY, optional = true)
	@JoinColumn(name="CLASS_ID")
	public TrainingClass getTrainingClass() {
		return trainingClass;
	}
	public void setTrainingClass(TrainingClass trainingClass) {
		this.trainingClass = trainingClass;
	}

}
